<?php
namespace App\Api\Application;

use App\Common as com;
use App\Api as nameApi;
use App\Api\Application\CheckAuth as nameCheckAuth;
use App\Common\Server\Api as nameServerApi;
use App\Common\Server\Api\Gateway as nameGateway;

class CheckAuth extends nameApi\Application\Base {

	/*
	protected array $verifyRules = [
	   'id' => 'required|numeric',
	   'ids' => 'required|array',
	];
	*/

	/*
	protected function _checkAuth( nameServerApi\Lib\ApplicationParamDto $apiRequest ) {
		//
		return true;
	}
	*/

	/**
	 * 执行api
	 * @param nameGateway\ApiRequest $apiRequest
	 * @param nameServerApi\Lib\ApplicationParamDto $apiParamDto
	 * @return com\Server\Api\Gateway\ApiResponse|array
	 * @throws
	 */
	protected function _excApi( nameGateway\ApiRequest $apiRequest, nameServerApi\Lib\ApplicationParamDto $apiParamDto ):com\Server\Api\Gateway\ApiResponse|array {
		return [
			'apiParam' => $apiParamDto->getApiParam(),
		];
	}

}
